# $Id$
# Maintainer: Ray Rashif <schiv@archlinux.org>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: damir <damir@archlinux.org>
# Contributor: Robert Emil Berge <robert@rebi.no>

pkgname=rosegarden
pkgver=17.04
_pkgver=17.04
pkgrel=2
pkgdesc="MIDI/audio sequencer and notation editor"
arch=('i686' 'x86_64')
url="http://www.rosegardenmusic.com/"
license=('GPL')
depends=('liblrdf' 'dssi' 'fftw' 'lirc'
         'hicolor-icon-theme' 'qt5-base' 'shared-mime-info' 'liblo>=0.28')
makedepends=('imake' 'cmake' 'qt5-tools')
optdepends=('lilypond: notation display'
            'cups: printing support'
            'okular: print preview, or any other PDF viewer'
            'timidity++: MIDI playback, or any other softsynth'
            'flac'
            'wavpack')
[ "$CARCH" = "i686" ] && optdepends+=('dssi-vst: win32 VST support')
source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$_pkgver.tar.bz2")
md5sums=('d3d80cc8e6eb3c7764a2905059acacce')

build() {
  cd "$srcdir/$pkgname-$pkgver"

  # qt4 compatibility (qt->qt5)
  #LRELEASE=/usr/lib/qt4/bin/lrelease
  #LUPDATE=/usr/lib/qt4/bin/lupdate

  #export lrdf_CFLAGS LRELEASE LUPDATE

  cmake -DBUILD_TESTING=OFF -DCMAKE_INSTALL_PREFIX=/usr
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  make DESTDIR="$pkgdir" install
}

# vim:set ts=2 sw=2 et:
